package cn.iocoder.yudao.module.game.dal.mysql.withdrawalAccount;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.game.dal.dataobject.withdrawalAccount.WithdrawalAccountDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.game.controller.admin.withdrawalAccount.vo.*;

/**
 * 提款账号 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface WithdrawalAccountMapper extends BaseMapperX<WithdrawalAccountDO> {

    default PageResult<WithdrawalAccountDO> selectPage(WithdrawalAccountPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<WithdrawalAccountDO>()
                .likeIfPresent(WithdrawalAccountDO::getCpf, reqVO.getCpf())
                .likeIfPresent(WithdrawalAccountDO::getWithdrawalName, reqVO.getWithdrawalName())
                .orderByDesc(WithdrawalAccountDO::getId));
    }

}